@import '@/app/styles/variables';

.general_container {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  z-index: 1;
  margin-bottom: 109px;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding: 56px 56px 48px 56px;
  border-radius: 32px;
  background: #fff;
  z-index: 2;
  top: 136px;
  position: relative;
}

.back {
  display: none;
}

.card_image {
  overflow: hidden;
  border-radius: 32px;
  background: #fefefe;
  position: absolute;
  display: flex;
  width: 100%;
  align-self: center;
  height: 400px;
  z-index: 1;
  top: 0;

  img {
    object-fit: cover;
  }
}

.block {
  display: flex;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  border-radius: 32px;
  border: 1px solid var(--Simple-Gray-Day, #e1e1e1);
}

.avail {
  color: var(--Simple-Gray-Midnight, #7d7d7d);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  /* 137.5% */
}

.first {
  border-bottom: 1px solid #e1e1e1;
}

.noCard {
  display: flex;
  width: 166px;
  height: 104px;
  padding: 20px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px dashed var(--Simple-Gray-Day, #e1e1e1);
  cursor: pointer;
}

.btn {
  font-size: 16px;
  line-height: 22px;
}

.info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 16px;

  svg {
    transform: scale(1.4);
  }
}

.payment {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}

.cards {
  display: flex;
  gap: 9px;
}

@include media(sm) {
  .cards {
    overflow-x: auto;
  }

  .back {
    display: flex;
    left: 0%;
    align-self: self-start;
  }

  .card_image {
    overflow: hidden;
    border-radius: 0px;
    background: #fefefe;
    position: absolute;
    display: flex;
    width: 100%;
    height: 248px;
    justify-content: center;
    align-items: center;
    z-index: 0;

    img {
      object-fit: cover;
    }
  }


  .container {
    border-radius: 32px;
    padding: 24px 16px;
    gap: 24px;
  }

  .btn {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
  }

  .info {
    padding: 12px 0px;
  }

  .block {
    border: none;
    padding: 0px;
    align-items: flex-end;
    width: auto;

    svg {
      transform: scale(1);
    }
  }

  .avail {
    color: var(--Simple-Gray-Midnight, #7d7d7d);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    /* 133.333% */
  }

  .link {
    font-size: 14px;
  }

  .cards::-webkit-scrollbar-thumb {
    background-color: none;
    /* цвет полосы прокрутки */
  }

  .cards::-webkit-scrollbar-track {
    background-color: none;
    /* цвет фона полосы прокрутки */
  }
}